package ch.simas.javaee6examples.service.interceptor;

import javax.interceptor.AroundInvoke;
import javax.interceptor.InvocationContext;

/**
 *
 * @author Simon
 */
public class TraceInterceptor {

    @AroundInvoke
    public Object trace(InvocationContext context) throws Exception {
        System.out.println("Method called: " + context.getMethod());
        return context.proceed();
    }
}
